[INFO] cloning repository https://github.com/abderrahmaneMustapha/buffer-pool
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/abderrahmaneMustapha/buffer-pool" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FabderrahmaneMustapha%2Fbuffer-pool", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FabderrahmaneMustapha%2Fbuffer-pool'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c090a94913ae4c3a721da27d18c6c4bfc74cc50e
[INFO] fixing abderrahmaneMustapha/buffer-pool against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FabderrahmaneMustapha%2Fbuffer-pool" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/abderrahmaneMustapha/buffer-pool
[INFO] finished tweaking git repo https://github.com/abderrahmaneMustapha/buffer-pool
[INFO] tweaked toml for git repo https://github.com/abderrahmaneMustapha/buffer-pool written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/abderrahmaneMustapha/buffer-pool on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/abderrahmaneMustapha/buffer-pool already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba
[INFO] running `Command { std: "docker" "start" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking buffer-pool v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:187:17
[INFO] [stdout]     |
[INFO] [stdout] 187 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:211:17
[INFO] [stdout]     |
[INFO] [stdout] 211 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:217:17
[INFO] [stdout]     |
[INFO] [stdout] 217 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:256:17
[INFO] [stdout]     |
[INFO] [stdout] 256 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_manager.rs:278:17
[INFO] [stdout]     |
[INFO] [stdout] 278 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 182 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]   --> src/disk_scheduler.rs:95:17
[INFO] [stdout]    |
[INFO] [stdout] 95 |         let _ = remove_file(test_file);
[INFO] [stdout]    |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout] 90 +     use std::fs::remove_file;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PAGE_SIZE` in this scope
[INFO] [stdout]    --> src/disk_scheduler.rs:100:47
[INFO] [stdout]     |
[INFO] [stdout] 100 |         let page_data = b"Hello world".repeat(PAGE_SIZE / 10);
[INFO] [stdout]     |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout]  90 +     use crate::common::PAGE_SIZE;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `PAGE_SIZE` in this scope
[INFO] [stdout]    --> src/disk_scheduler.rs:101:38
[INFO] [stdout]     |
[INFO] [stdout] 101 |         let page_data = &page_data[..PAGE_SIZE];
[INFO] [stdout]     |                                      ^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this constant
[INFO] [stdout]     |
[INFO] [stdout]  90 +     use crate::common::PAGE_SIZE;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `remove_file` in this scope
[INFO] [stdout]    --> src/disk_scheduler.rs:125:17
[INFO] [stdout]     |
[INFO] [stdout] 125 |         let _ = remove_file(test_file);
[INFO] [stdout]     |                 ^^^^^^^^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout]  90 +     use std::fs::remove_file;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PageId`
[INFO] [stdout]  --> src/frame_header.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::common::{ PageId, FrameId, PAGE_SIZE };
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `PageId`
[INFO] [stdout]  --> src/frame_header.rs:8:22
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::common::{ PageId, FrameId, PAGE_SIZE };
[INFO] [stdout]   |                      ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]    --> src/buffer_pool.rs:363:9
[INFO] [stdout]     |
[INFO] [stdout] 363 |     use super::*;
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stdout]    --> src/buffer_pool.rs:362:1
[INFO] [stdout]     |
[INFO] [stdout] 362 | mod buffer_pool_manager_tests {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get_pin_count` found for struct `buffer_pool::BufferPoolManager` in the current scope
[INFO] [stdout]    --> src/buffer_pool.rs:377:24
[INFO] [stdout]     |
[INFO] [stdout]  15 | pub struct BufferPoolManager {
[INFO] [stdout]     | ---------------------------- method `get_pin_count` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 377 |         assert_eq!(bpm.get_pin_count(page_id).unwrap(), 2);
[INFO] [stdout]     |                        ^^^^^^^^^^^^^ method not found in `buffer_pool::BufferPoolManager`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `frame` of struct `ReadPageGuard` is private
[INFO] [stdout]    --> src/buffer_pool.rs:379:20
[INFO] [stdout]     |
[INFO] [stdout] 379 |         read_guard.frame.is_dirty.store(false, Ordering::SeqCst);
[INFO] [stdout]     |                    ^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0616]: field `frame` of struct `ReadPageGuard` is private
[INFO] [stdout]    --> src/buffer_pool.rs:383:20
[INFO] [stdout]     |
[INFO] [stdout] 383 |         read_guard.frame.is_dirty.store(true, Ordering::SeqCst);
[INFO] [stdout]     |                    ^^^^^ private field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0599, E0616.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `buffer-pool` (bin "buffer-pool" test) due to 13 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: field `dirty_pages` is never read
[INFO] [stdout]   --> src/arc_replacer.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct ArcReplacer {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 25 |     dirty_pages: HashSet<PageId>, // pages marked as dity
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `size` and `remove` are never used
[INFO] [stdout]    --> src/arc_replacer.rs:45:12
[INFO] [stdout]     |
[INFO] [stdout]  29 | impl ArcReplacer {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  45 |     pub fn size(&self) -> usize {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 187 |     pub fn remove(&mut self, frame_id: u32) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `page_size` is never read
[INFO] [stdout]   --> src/disk_manager.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | pub struct DiskManager {
[INFO] [stdout]    |            ----------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 19 |     page_size: usize,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Delete` is never constructed
[INFO] [stdout]   --> src/disk_scheduler.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub enum DiskRequestType {
[INFO] [stdout]    |          --------------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 18 |     Delete,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `disk_manager` is never read
[INFO] [stdout]   --> src/disk_scheduler.rs:30:5
[INFO] [stdout]    |
[INFO] [stdout] 28 | pub struct DiskScheduler {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] 29 |     request_tx: mpsc::Sender<Option<DiskRequest>>,
[INFO] [stdout] 30 |     disk_manager: Arc<Mutex<DiskManager>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `bpm_latch` is never read
[INFO] [stdout]   --> src/guard.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | pub struct WritePageGuard {
[INFO] [stdout]    |            -------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 16 |     bpm_latch: Arc<Mutex<()>>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `data` is never used
[INFO] [stdout]   --> src/guard.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 21 | impl WritePageGuard {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 70 |     pub fn data(&self) -> LockResult<RwLockReadGuard<'_, Vec<u8>>> {
[INFO] [stdout]    |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `bpm_latch` is never read
[INFO] [stdout]   --> src/guard.rs:94:5
[INFO] [stdout]    |
[INFO] [stdout] 90 | pub struct ReadPageGuard {
[INFO] [stdout]    |            ------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     bpm_latch: Arc<Mutex<()>>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `data` is never used
[INFO] [stdout]    --> src/guard.rs:121:12
[INFO] [stdout]     |
[INFO] [stdout]  99 | impl ReadPageGuard {
[INFO] [stdout]     | ------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 121 |     pub fn data(&self) -> LockResult<RwLockReadGuard<'_, Vec<u8>>> {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `num_frames` is never read
[INFO] [stdout]   --> src/buffer_pool.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct BufferPoolManager {
[INFO] [stdout]    |            ----------------- field in this struct
[INFO] [stdout] 16 |     num_frames: usize,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `delete_page` and `flush_all_pages` are never used
[INFO] [stdout]    --> src/buffer_pool.rs:73:12
[INFO] [stdout]     |
[INFO] [stdout]  26 | impl BufferPoolManager {
[INFO] [stdout]     | ---------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  73 |     pub fn delete_page(&mut self, page_id: PageId) { 
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 338 |     pub fn flush_all_pages(&mut self) -> bool {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba", kill_on_drop: false }`
[INFO] [stdout] 06e5ec2be5542774217af7aa3929d2ffec75dd540f5697dd6afa03c0689a95ba
